package com.jbp.model;

import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * 工会用户(UnionUser)实体
 * @author cc
 * @since 2021-08-05 20:48:19
 */
@ApiModel(value="UnionUser")
@Data
public class UnionUser implements Serializable {
    private static final long serialVersionUID = 1L;
    
    private Integer id;

    //工会id
    @ApiModelProperty(value="工会id")    
    
    private Integer unionId;

    @TableField(exist = false)
    private Integer unionUuid;
    @TableField(exist = false)
    private String unionName;
    @TableField(exist = false)
    private String unionImg;

    @TableField(exist = false)
    private Integer unionHostId;
    @TableField(exist = false)
    private String unionHostUuid;
    @TableField(exist = false)
    private String unionHostName;
    @TableField(exist = false)
    private String unionHostImg;

    //用户id
    @ApiModelProperty(value="用户id")
    private Integer userId;

    //状态 0申请加入，1 加入成功  2加入失败 3退出申请 4退出成功 
    @ApiModelProperty(value="状态 0无关，1申请加入，2 加入成功  3加入失败 4退出申请 5退出成功 ")
    private Integer status;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date joinTime;
    //商城分成比率
    @ApiModelProperty(value="商城分成比率")
    private Integer shopRate;

    //背包分成比率
    @ApiModelProperty(value="背包分成比率")
    private Integer bagRate;

    //创建时间
    @ApiModelProperty(value="创建时间")    
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    //更新时间
    @ApiModelProperty(value="更新时间")    
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

}